<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象的扩展</title>
    <script type="text/javascript">
        const p1 = {
            abc:"zxy",
            address:"香港市尖沙咀"
        }

        const p2 = {
            abc:"jack",
            name:21
        }

        const p3 = {
            abc:"ldh",
            name:50
        }

        Object.assign(p3,p2,p1);

        console.log(p3)

    </script>
</head>
<body>

</body>
</html>